package travibot.core.tags;

import java.util.ArrayList;
import java.util.List;


public class Form extends HTML {

    private List<Input> inputs = new ArrayList<Input>();
    
    private String method;
    private String name;
    private String action;
    
    public String getAction() {
    
        return action;
    }
    
    public void setAction(String action) {
    
        this.action = action;
    }
    
    public String getMethod() {
    
        return method;
    }
    
    public void setMethod(String method) {
    
        this.method = method;
    }
    
    public String getName() {
    
        return name;
    }
    
    public void setName(String name) {
    
        this.name = name;
    }
    
    public List<Input> getInputs(){
        
        return this.inputs;
    }
    
    public Form(String method, String name, String action) {

        super();
        this.method = method;
        this.name = name;
        this.action = action;
    }

    public void addInput(Input input){
        
        inputs.add(input);
    }
}
